package com.yxp423.ssmempl.utils;

import cn.hutool.core.util.StrUtil;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
public enum ProcessEnum {

//	projectId("projectId","项目id"),

	startTime("startTime","开始时间"),

	endTime("endTime","结束时间"),

	currentExpense("currentExpense","当前支出"),

	percentage("percentage","当前进度"),

	updateDesc("updateDesc","备注信息");

	private String eName;
	private String cName;

	@Override
	public String toString() {
		return super.toString();
	}

	public String geteName() {
		return eName;
	}

	public void seteName(String eName) {
		this.eName = eName;
	}

	public String getcName() {
		return cName;
	}

	public void setcName(String cName) {
		this.cName = cName;
	}

	public static String getcName(String eName){

		ProcessEnum[] values = values();

		String cName = "";
		for (ProcessEnum value : values) {

			if (StrUtil.equals(eName,value.eName)){//如果输入的英文名称等于枚举的英文

				cName =  value.cName;
			}
		}

		return cName;

	}


}
